package com.hckjsec.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hckjsec.system.mapper.SysPartyBuildingMapper;
import com.hckjsec.system.domain.SysPartyBuilding;
import com.hckjsec.system.service.ISysPartyBuildingService;

/**
 * 党建Service业务层处理
 * 
 * @author cyt
 * @date 2021-10-12
 */
@Service
public class SysPartyBuildingServiceImpl implements ISysPartyBuildingService 
{
    @Autowired
    private SysPartyBuildingMapper sysPartyBuildingMapper;

    /**
     * 查询党建
     * 
     * @param partyId 党建ID
     * @return 党建
     */
    @Override
    public SysPartyBuilding selectSysPartyBuildingById(Long partyId)
    {
        return sysPartyBuildingMapper.selectSysPartyBuildingById(partyId);
    }

    /**
     * 查询党建列表
     * 
     * @param sysPartyBuilding 党建
     * @return 党建
     */
    @Override
    public List<SysPartyBuilding> selectSysPartyBuildingList(SysPartyBuilding sysPartyBuilding)
    {
        return sysPartyBuildingMapper.selectSysPartyBuildingList(sysPartyBuilding);
    }

    /**
     * 新增党建
     * 
     * @param sysPartyBuilding 党建
     * @return 结果
     */
    @Override
    public int insertSysPartyBuilding(SysPartyBuilding sysPartyBuilding)
    {
        return sysPartyBuildingMapper.insertSysPartyBuilding(sysPartyBuilding);
    }

    /**
     * 修改党建
     * 
     * @param sysPartyBuilding 党建
     * @return 结果
     */
    @Override
    public int updateSysPartyBuilding(SysPartyBuilding sysPartyBuilding)
    {
        return sysPartyBuildingMapper.updateSysPartyBuilding(sysPartyBuilding);
    }

    /**
     * 批量删除党建
     * 
     * @param partyIds 需要删除的党建ID
     * @return 结果
     */
    @Override
    public int deleteSysPartyBuildingByIds(Long[] partyIds)
    {
        return sysPartyBuildingMapper.deleteSysPartyBuildingByIds(partyIds);
    }

    /**
     * 删除党建信息
     * 
     * @param partyId 党建ID
     * @return 结果
     */
    @Override
    public int deleteSysPartyBuildingById(Long partyId)
    {
        return sysPartyBuildingMapper.deleteSysPartyBuildingById(partyId);
    }
}
